package org.karson.designpattern.creational.singleton;

/**
 * 内部静态类
 */
public class Singleton4 {

    private Singleton4() {
    }

    private static class SingletonHolder {
        private static final Singleton4 instance = new Singleton4();
    }

    public static Singleton4 getInstance() {
        return SingletonHolder.instance;
    }

}
